home *** CD-ROM | disk | FTP | other *** search
Wrap
FindFolder 1.1 by Frédéric RINALDI DESCRIPTION FindFolder returns the full pathname of the active System folder or any of its reserved folders (System 7.0). SYNTAX FindFolder([<folder descriptor>[,<create it>]]) PARAMETERS <folder descriptor> is a string describing the folder. It must be one of these values (only first char is checked) : A[pple menu] C[ontrol Panel] D[esktop] E[xtensions] F[onts] (System 7.1 only) P[references] M[onitor printing] N[etwork trash] T[rash] I[tems startup] S[ystem] Y : TemporarY items Default value is "S". <create it> is a boolean telling if the XFCN must create the folder if not found (only with System 7.0). Default is FALSE. Both parameters are optional. Using "!", "?" or "=" as first parameter will return an online help (resp. copyright, syntax and output). USING The XFCN returns the full pathname of the requested folder, ending with colon. Under System 6.0, only current System folder can be returned. ERRORS If an error occurs, the XFCN can return : "Error : Empty parameter" "Error : Second param must be boolean" "Error : Folder not found" "Error : Found file instead of folder" HISTORY 1.1 04/21/92 • Added "font" param for System 7.1 -------------------------------------------------------------------- All externals included in this stack are FreeWare and may be used in non-commercial software provided the following notice is visibly present : FindFolder XFCN, © Frederic Rinaldi, 1989…1993. Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses: AppleLink: RINALDI1 CalvaCom : FR10 Compuserve : 71170,2111 Internet : RINALDI1@APPLELINK@APPLE.COM